<template>
	<view class="">
		<!-- 项目信息 -->
		<view class="info-plate mt-20">
			<view class="title">项目信息</view>
			<view class="text-black">
				<view class="flex mb-20">
					<u--image
					    radius="10"
					    :src="details.project.image || '/static/logo.png'"
					    :showLoading="true"
					    width="80px"
					    height="80px"
					></u--image>
					<view class="ml-20 w-100">
						<view class="flex justify-between paddingLeft10">
							<view class="fsize-30">{{details.project.name}}</view>
							<view class="text-red fsize-28">￥{{details.project.price}}</view>
						</view>
						<view class="fsize-26 padding-10">
							<view class="">销售人: {{details.staff.nickName}}</view>
							<view>服务人: {{details.staff.nickName}}</view>
						</view>
					</view>
				</view>
			</view>
		</view>
		
		
		<view class="info-plate mt-20">
			<view class="title">价格</view>
			<view class="text-black">
				<view class="flex justify-between">
					<text class="fsize-30">订单金额</text>
					<text class="text-red fsize-30">￥{{details.orderAmount || 0}}</text>
				</view>
			</view>
			<view class="text-black">
				<view class="flex justify-between">
					<text class="fsize-30">优惠金额</text>
					<text class="text-red fsize-30">￥{{details.discountAmout || 0}}</text>
				</view>
			</view>
			<view class="text-black">
				<view class="flex justify-between">
					<text class="fsize-30">支付金额</text>
					<text class="text-red fsize-30">￥{{details.payedAmount || 0}}</text>
				</view>
			</view>
			<view class="text-black">
				<view class="flex justify-between">
					<text class="fsize-30">支付方式</text>
					<text class="fsize-30">{{details.paymentTitle || '线下支付'}}</text>
				</view>
			</view>
		</view>
		<view class="info-plate mt-20">
			<view class="title">时间</view>
			<view class="text-black">
				<view class="flex justify-between">
					<text class="fsize-30">下单时间</text>
					<text class="fsize-30">{{details.createTime || ''}}</text>
				</view>
			</view>
			<view class="text-black">
				<view class="flex justify-between">
					<text class="fsize-30">支付时间</text>
					<text class="fsize-30">{{details.payTime || ''}}</text>
				</view>
			</view>
		</view>
		<view class="info-plate mt-20">
			<view class="title">顾客信息</view>
			<view class="text-black">
				<view class="flex justify-between">
					<text class="fsize-30">id</text>
					<text class="fsize-30">{{details.user.id || ''}}</text>
				</view>
			</view>
			<view class="text-black">
				<view class="flex justify-between">
					<text class="fsize-30">昵称</text>
					<text class="fsize-30">{{details.user.nickName || ''}}</text>
				</view>
			</view>
			<view class="text-black">
				<view class="flex justify-between">
					<text class="fsize-30">手机</text>
					<text class="fsize-30">{{details.user.mobile || ''}}</text>
				</view>
			</view>
			<view class="text-black">
				<view class="flex justify-between">
					<text class="fsize-30">留言</text>
					<text class="fsize-30">{{details.customerRemark || ''}}</text>
				</view>
			</view>
		</view>
		<u-safe-bottom></u-safe-bottom>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				orderId: 0,
				details: {},
			}
		},
		onLoad(option) {
			this.orderId = option.id
			this.getDatails(this.orderId)
		},
		methods: {
			getDatails(id) {
				var that = this;
				that.$reqJsonPost('ServicesOrderDetails', {
					id: id
				}).then(res => {
					that.details = res.data.model;
					console.log(that.details);
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.info-plate {
		padding: 20rpx;
		margin:0 20rpx;
		border-radius: 10rpx;
		background-color: #fff;

		.title {
			font-size: 28rpx;
			font-weight: 600;
			padding-bottom: 20rpx;
			border-bottom: 1px #f1f1f1 solid;
		}

		.text-black {
			padding-top: 20rpx;
			line-height: 1.8;
		}
	}
	.paddingLeft10{ padding-left: 10rpx;}
	.marginTop60{ margin-top: 60rpx;}
	.status-img-view {
		background-color: #fff;
		padding: 40rpx 0;
		.are-img {
			display:block;
			width: 330rpx;
			margin: 0 auto;
		}


	}
</style>
